package com.cybertooth.dbconvenience.query.conditions;

import com.cybertooth.dbconvenience.query.columns.Column;

/**
 * <p></p>
 *
 * @author dnelson
 */
public class ColumnIsNull implements ColumnCondition {

	// -----------------------------------------------------------------------Fields

	protected Column column;

	// -----------------------------------------------------------------Constructors

	public ColumnIsNull(Column column) {
		this.column = column;
	}

	// ---------------------------------------------------------------Public Methods

	@Override
	public String toSql() {
		return new StringBuilder()
				.append(" ")
				.append(this.column.toSql()).append("IS NULL")
				.append(" ")
				.toString();
	}
}
